package com.aiyi.education.admin.service;


import com.aiyi.education.entity.admin.KsAdminPlan;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface IKsAdminPlanService extends IService<KsAdminPlan> {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(KsAdminPlan record);

    KsAdminPlan selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(KsAdminPlan record);

    /**
     * 新增管理员工作计划
     * @param map
     * @param userObject
     * @param record
     * @return
     */
    Map<String, Object> addKsAdminPlan(Map<String, Object> map, Object userObject, KsAdminPlan record);

    /**
     * 更新管理员工作计划
     * @param map
     * @param userObject
     * @param record
     * @return
     */
    Map<String, Object> updateKsAdminPlan(Map<String, Object> map, Object userObject, KsAdminPlan record);

    /**
     * 删除管理员工作计划
     * @param map
     * @param userObject
     * @param record
     * @return
     */
    Map<String, Object> deleteKsAdminPlan(Map<String, Object> map, Object userObject, KsAdminPlan record);

    /**
     * 根据条件查询管理员工作计划
     * @param map
     * @param userObject
     * @param pageModel
     * @param requestJson
     * @return
     */
    Map<String, Object> searchKsAdminPlan(Map<String, Object> map, Object userObject, Page<KsAdminPlan> pageModel, JSONObject requestJson);
}
